package pay.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

@Data
public class WxRefundTransaction {
    @JSONField(name="mchid")
    private String mchId;
    @JSONField(name="out_trade_no")
    private String outTradeNo;
    @JSONField(name="transaction_id")
    private String transactionId;
    @JSONField(name="out_refund_no")
    private String outRefundNo;
    @JSONField(name="refund_id")
    private String refundId;
    @JSONField(name="refund_status")
    private String refundStatus;
    @JSONField(name="success_time")
    private String successTime;
    @JSONField(name = "amount")
    private Amount amount;
    @JSONField(name = "user_received_account")
    private String userReceivedAccount;


    @Data
   public static class Amount{
        @JSONField(name="total")
        private Long total;
        @JSONField(name="refund")
        private Long refund;
        @JSONField(name = "payer_total")
        private Long payerTotal;
        @JSONField(name = "payer_refund")
        private Long payerRefund;
    }
}
